
namespace Ke.Bee.Shared.Abstractions;

/// <summary>
/// 发送通知
/// </summary>
public interface INotificationService<TResult> where TResult : class
{
    Task SendCompletionNotificationAsync(
        string callbackUrl,
        string taskId,
        TResult result,
        CancellationToken ct);

    Task SendErrorNotificationAsync(
        string callbackUrl,
        string taskId,
        string error,
        CancellationToken ct);
}